package com.shangxian.giveithome.mapper;

import com.shangxian.giveithome.entity.community.Comment;
import com.shangxian.giveithome.entity.community.CommetList;
import com.shangxian.giveithome.entity.community.NoticeCenter;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    List<CommetList> findCommentListById(Long id, int pageNumber, int pageSize);

    int findCommentNumber(Long id);

    int addComment(Comment comment);

    int deleteCommentById(Long id);

    int findCommentCountByUsId(Long id);

    int readComment(Long id);

    int readAllComment(Long id);

    NoticeCenter findNewestComment(Long id);

    Long findNotReadCommet(Long id);
}
